<?php

class theme{

    private $themename   = 'default';
    private $dir         = '';
    private $fonts       = array('Open+Sans');
    private $googlefonts = array('Open+Sans');
    public function init(){
        require_once 'fonts.php';
        require_once 'googlefonts.php';
        $this->fonts       = $fonts_array;
        $this->googlefonts = $google_fonts_array;
    }

    public function getTheme(){
        return $this->themename;
    }

    public function getThemeVars(){
        
    }

    private function font_exists($font){
        if(in_array($fonte, $this->googlefonts)){return $fonte;}
        if(in_array($fonte, $this->fonts)){return $fonte;}
        return $this->fonts['arial'];
    }

    private function importGoogleFonts($font){
        return "@import url(http://fonts.googleapis.com/css?family=$font);";
    }
}

?>